package geometry.basic;

public class Point extends Pair {

	public Point(double x, double y) {
		super(x, y);
	}

	public Vector vectorTo(Point other) {
		return new Vector(other.x - x, other.y - y);
	}

	public double distance(Point other) {
		return vectorTo(other).length();
	}

}
